<?php echo $this->Javascript->link('excanvas'); ?>
<?php echo $this->Javascript->link('jquery.jqplot.min'); ?>
<?php echo $this->Javascript->link('jqplot.categoryAxisRenderer.min'); ?>
<?php echo $this->Javascript->link('jqplot.highlighter.min'); ?>
<?php echo $this->Javascript->link('jqplot.canvasAxisTickRenderer.min'); ?>
<?php echo $this->Javascript->link('jqplot.canvasTextRenderer.min'); ?>
<?php echo $this->Javascript->link('jqplot.logAxisRenderer.min'); ?>
<?php echo $this->Html->css('jquery.jqplot'); ?>

<script>
    $("#tbs").tabs();
</script>
<script>
    $(document).ready(function() {


        var line1=[<?php echo $datos?>];
        var plot1 = $.jqplot('chart1', [line1], {
            axes: {
                xaxis: {
                    renderer: $.jqplot.CategoryAxisRenderer,
                    tickRenderer: $.jqplot.CanvasAxisTickRenderer,
                    tickOptions: {
                        angle: -90
                    }

                },
                yaxis: {
                    pad: 0,
                    tickOptions: {
                        //formatString: "$%'d",
                    }
                }
            },
            highlighter: {
                show: true,
                tooltipAxes: 'y',
                sizeAdjust: 4.5,
            },
            cursor: {
                show: false
            }
        });
    });


</script>

<br>
<br>
<table border="0" cellpadding="8" style="width: 80%;">

    <tbody>
        <tr>
            <td>Listado de empresas</td>
            <td><?php echo $this->Html->link('Descargar', array('controller' => 'companies', 'action' => 'total_report'), array('target' => '_blannk', 'class' => 'acciones')) ?></td>
        </tr>
        <tr>
            <td>Empresas por departamento</td>
            <td><?php echo $this->Html->link('Descargar', array('controller' => 'companies', 'action' => 'departament_report'), array('target' => 'blannk', 'class' => 'acciones')) ?></td>
        </tr>



    </tbody>
</table>
<br>
<br>
<div id="chart1" style="height:350px;width:60%;margin: 0 auto ">

</div>





